package com.wakaka.service.impl;

import com.wakaka.mapper.DeptMapper;
import com.wakaka.pojo.Dept;
import com.wakaka.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements IDeptService {

    @Autowired
    DeptMapper mapper;

    public int add(String name) {
        return mapper.add(name);
    }

    public Dept queryById(long id) {
        return mapper.queryById(id);
    }

    public List<Dept> queryAll() {
        return mapper.queryAll();
    }
}
